package me.firstapp.weixin.controller.product;

import java.math.BigDecimal;

import me.firstapp.module.weixin.product.Product;

public class JsonProduct {

	private Long id;

	// 种类ID
	private Long productCategoryId;

	// 种类名称
	private String categoryName;

	// 商品名称
	private String name;

	// 商品图片链接
	private String imgUrl;

	// 商品详情链接
	private String detailUrl;

	// 单位
	private String unit;

	private String otherPriceName1;

	private BigDecimal otherPrice1;

	private String otherPriceName2;
	private BigDecimal otherPrice2;

	// 售价
	private BigDecimal price;

	// 描述
	private String description;

	// 备注
	private String remark;

	public JsonProduct(Product product) {
		this.id = product.getId();
		this.productCategoryId = product.getProductCategoryId();
		this.categoryName = product.getCategoryName();
		this.name = product.getName();
		this.imgUrl = product.getImgUrl();
		this.detailUrl = product.getDetailUrl();
		this.unit = product.getUnit();
		this.description = product.getDescription();
		this.remark = product.getRemark();
	}

	public Long getProductCategoryId() {
		return productCategoryId;
	}

	public void setProductCategoryId(Long productCategoryId) {
		this.productCategoryId = productCategoryId;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getDetailUrl() {
		return detailUrl;
	}

	public void setDetailUrl(String detailUrl) {
		this.detailUrl = detailUrl;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public BigDecimal getOtherPrice1() {
		return otherPrice1;
	}

	public void setOtherPrice1(BigDecimal otherPrice1) {
		this.otherPrice1 = otherPrice1;
	}

	public BigDecimal getOtherPrice2() {
		return otherPrice2;
	}

	public void setOtherPrice2(BigDecimal otherPrice2) {
		this.otherPrice2 = otherPrice2;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getOtherPriceName1() {
		return otherPriceName1;
	}

	public void setOtherPriceName1(String otherPriceName1) {
		this.otherPriceName1 = otherPriceName1;
	}

	public String getOtherPriceName2() {
		return otherPriceName2;
	}

	public void setOtherPriceName2(String otherPriceName2) {
		this.otherPriceName2 = otherPriceName2;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
